package com.miss.spjyx.network

import com.miss.spjyx.model.BaseRes
import com.miss.spjyx.model.Danju
import com.miss.spjyx.model.DeviceModel
import retrofit2.Call
import retrofit2.http.Field
import retrofit2.http.FormUrlEncoded
import retrofit2.http.POST

/**
 * 请求接口
 *
 * @author wl
 * @since 2019/08/31 12:41
 */
interface ApiService {

    // 出入库单
    @POST("mobile/rfm/crkd")
    @FormUrlEncoded
    fun getCrkd(@Field("warehouse") warehouse: String?, @Field("type") type: String?): Call<BaseRes<List<Danju>>>

    // 入库扫描上传
    @POST("mobile/rfm/inScan")
    @FormUrlEncoded
    fun inScan(@Field("activityId") activityId: String, @Field("fallId") fallId: String, @Field("codes") codes: String): Call<BaseRes<String>>

    // 出库扫描上传
    @POST("mobile/rfm/outScan")
    @FormUrlEncoded
    fun outScan(@Field("activityId") activityId: String, @Field("fallId") fallId: String, @Field("codes") codes: String): Call<BaseRes<String>>

    // 设备识别上传
    @POST("mobile/rfm/eqScan")
    @FormUrlEncoded
    fun deviceScan(@Field("codes") codes: String): Call<BaseRes<List<DeviceModel>>>
}